import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import workList from '@/views/workListIndex'
import userInfo from '@/views/userInfoIndex'
import news from '@/views/news'
import messagePage from '@/views/messagePageIndex'
import loginPage from '@/views/loginPageIndex'
import addressBook from '@/views/addressBookIndex'
import signUp from '@/views/signUpIndex'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '',
      components:{
        default:Home
      },
      children:[{
        path:'',
        component:workList,
        name:''
      },{
        path:'/userinfo',
        component:userInfo,
        name:''      
      },{
        path:'/news',
        component:news,
        name:''      
      },{
        path:'/dialog',
        component:messagePage,
        name:''      
      },{
        path:'/login',
        component:loginPage,
        name:''      
      },{
        path:'/addressbook',
        component:addressBook,
        name:''      
      },{
        path:'/signup',
        component:signUp,
        name:''
      }

      ]
    }
  ]
})
